//
//  UIView+Layout.h
//  Lanrenzhoumo
//
//  Created by 陈任龙 on 16/4/15.
//  Copyright © 2016年 陈任龙. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (Layout)

@property (nonatomic) CGFloat left;
@property (nonatomic) CGFloat top;
@property (nonatomic) CGFloat right;
@property (nonatomic) CGFloat bottom;
@property (nonatomic) CGFloat width;
@property (nonatomic) CGFloat height;
@property (nonatomic) CGFloat centerX;     ///< Shortcut for center.x
@property (nonatomic) CGFloat centerY;     ///< Shortcut for center.y
@property (nonatomic) CGPoint origin;
@property (nonatomic) CGSize size;
@property (nonatomic, readonly) CGFloat screenX;
@property (nonatomic, readonly) CGFloat screenY;

- (CGFloat)current_x;

- (CGFloat)current_y;

- (CGFloat)current_h;

- (CGFloat)current_w;

- (CGFloat)current_x_w;

- (CGFloat)current_y_h;

@end
